package com.yyfax.pay.common.enums;

/**
 * 富友存管提现业务类型
 * 
 * @author buyi
 * @date 2017-11-28 16:40:28
 * @since v1.0.0
 */
public enum FuiouDepositWithdrawType {

	/**
	 * 提现
	 */
	NORMAL("1"),
	/**
	 * 委托提现
	 */
	ENTRUST("2");
	private String value;

	private FuiouDepositWithdrawType(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isValue(String value) {
		return getValue().equals(value);
	}

	public static FuiouDepositWithdrawType from(String value) {
		for (FuiouDepositWithdrawType type : FuiouDepositWithdrawType.values()) {
			if (type.isValue(value)) {
				return type;
			}
		}

		return null;
	}

}
